package com.huijie.app.sys.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.huijie.core.common.BaseEntity;
import java.time.LocalDateTime;

/**
 * <p>
 * 系统日志表
 * </p>
 *
 * @author echen
 * @since 2019-01-08
 */
@TableName("sys_log")
public class Log extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 日志标题
     */
    private String logTitle;

    /**
     * 日志类型 info error
     */
    private String logType;

    /**
     * 日志请求url
     */
    private String logUrl;

    /**
     * 请求方式 get post
     */
    private String logMethod;

    /**
     * 请求参数
     */
    private String logParams;

    /**
     * 请求异常
     */
    private String logException;

    /**
     * 请求用户Id
     */
    private String logUserName;

    /**
     * 请求IP
     */
    private String logIp;

    /**
     * 请求ip所在地
     */
    private String logIpAddress;

    /**
     * 请求开始时间
     */
    private LocalDateTime logStartTime;

    /**
     * 请求耗时
     */
    private Long logElapsedTime;

    public String getLogTitle() {
        return logTitle;
    }

    public void setLogTitle(String logTitle) {
        this.logTitle = logTitle;
    }
    public String getLogType() {
        return logType;
    }

    public void setLogType(String logType) {
        this.logType = logType;
    }
    public String getLogUrl() {
        return logUrl;
    }

    public void setLogUrl(String logUrl) {
        this.logUrl = logUrl;
    }
    public String getLogMethod() {
        return logMethod;
    }

    public void setLogMethod(String logMethod) {
        this.logMethod = logMethod;
    }
    public String getLogParams() {
        return logParams;
    }

    public void setLogParams(String logParams) {
        this.logParams = logParams;
    }
    public String getLogException() {
        return logException;
    }

    public void setLogException(String logException) {
        this.logException = logException;
    }
    public String getLogUserName() {
        return logUserName;
    }

    public void setLogUserName(String logUserName) {
        this.logUserName = logUserName;
    }
    public String getLogIp() {
        return logIp;
    }

    public void setLogIp(String logIp) {
        this.logIp = logIp;
    }
    public String getLogIpAddress() {
        return logIpAddress;
    }

    public void setLogIpAddress(String logIpAddress) {
        this.logIpAddress = logIpAddress;
    }
    public LocalDateTime getLogStartTime() {
        return logStartTime;
    }

    public void setLogStartTime(LocalDateTime logStartTime) {
        this.logStartTime = logStartTime;
    }
    public Long getLogElapsedTime() {
        return logElapsedTime;
    }

    public void setLogElapsedTime(Long logElapsedTime) {
        this.logElapsedTime = logElapsedTime;
    }

    @Override
    public String toString() {
        return "Log{" +
        "logTitle=" + logTitle +
        ", logType=" + logType +
        ", logUrl=" + logUrl +
        ", logMethod=" + logMethod +
        ", logParams=" + logParams +
        ", logException=" + logException +
        ", logUserName=" + logUserName +
        ", logIp=" + logIp +
        ", logIpAddress=" + logIpAddress +
        ", logStartTime=" + logStartTime +
        ", logElapsedTime=" + logElapsedTime +
        "}";
    }
}
